import Layout from '@/pages/public/layout' // 公共部分

const discount = [{
  path: '/promotion/discount/',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/market/promotion/discount/index.vue'),
    meta: {
      title: '限时打折-列表',
      permission: 'market.promotion.discount.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/market/promotion/discount/create.vue'),
    meta: {
      title: '限时打折-新建',
      permission: 'market.promotion.discount.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/market/promotion/discount/edit.vue'),
    meta: {
      title: '限时打折-编辑',
      permission: 'market.promotion.discount.edit'
    }
  }, {
    path: ':id/report',
    component: () => import('@/pages/market/promotion/discount/report/index.vue'),
    meta: {
      title: '限时打折-报表',
      permission: 'market.promotion.discount.report'
    }
  }]
}]

export default discount
